package com.softeem.ssm2.dao;

import com.softeem.ssm2.entity.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author mrchai
 * @Date 2019/10/12 10:17
 */
@Repository
public interface DepartmentMapper {

    /**
     * 添加专业
     * @param dept
     * @return
     */
    int insert(Department dept);

    /**
     * 根据id查询专业
     * @param id
     * @return
     */
    Department selectById(Integer id);

    /**
     * 查询所有专业
     * @return
     */
    List<Department> selectAll();
}
